package com.lhh.springcloud.controller;

import com.lhh.entity.Member;
import com.lhh.entity.Result;
import com.lhh.springcloud.service.MemberConsumerOpenFeignService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 李洪豪
 * @Sno 20220301044
 */
@RestController
@Slf4j
public class MemberConsumerOpenFeignHandler {
    @Resource
    private MemberConsumerOpenFeignService memberconsumeropenfeignservice;

    @GetMapping("/member/openfeign/query/{id}")
    public Result<Member> queryMemberById(@PathVariable("id") Long id) {
        return memberconsumeropenfeignservice.queryMemberById(id);
    }
}
